import request from '@/utils/request'

// 查询服务日志列表
export function listUrlLog(query) {
  return request({
    url: '/devops/urlLog/list',
    method: 'get',
    params: query
  })
}

// 查询服务日志详细
export function getUrlLog(id) {
  return request({
    url: '/devops/urlLog/' + id,
    method: 'get'
  })
}

// 新增服务日志
export function addUrlLog(data) {
  return request({
    url: '/devops/urlLog',
    method: 'post',
    data: data
  })
}

// 修改服务日志
export function updateUrlLog(data) {
  return request({
    url: '/devops/urlLog',
    method: 'put',
    data: data
  })
}

// 删除服务日志
export function delUrlLog(id) {
  return request({
    url: '/devops/urlLog/' + id,
    method: 'delete'
  })
}

// 导出服务日志
export function exportUrlLog(query) {
  return request({
    url: '/devops/urlLog/export',
    method: 'get',
    params: query
  })
}